-
-
Notifications
You must be signed in to change notification settings - Fork 6
Use identical modified-deleted timestamps in dailyroutine #803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
In some cases there might be an offset of 1sec. However it should have the same behavior as when deleting a beneficiary through the UI
| WHERE p2.parent_id = p1.id AND p1.deleted AND (NOT p2.deleted OR p2.deleted IS NULL)'); | ||
| while ($row = db_fetch($result)) { | ||
| db_query('UPDATE people SET deleted = NOW() WHERE id = :id', ['id' => $row['id']]); | ||
| db_query('UPDATE people SET deleted = NOW(), modified = NOW(), modified_by = :user WHERE id = :id', ['user' => $_SESSION['user']['id'], 'id' => $row['id']]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pylipp could we change it that the now timestamp matches the now timestamp in the history message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| if ($row['diff'] > $row['treshold']) { | ||
| db_query('UPDATE people SET deleted = NOW() WHERE id = :id', ['id' => $row['id']]); | ||
| db_query('UPDATE people SET deleted = NOW(), modified = NOW(), modified_by = :user WHERE id = :id', ['user' => $_SESSION['user']['id'], 'id' => $row['id']]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pylipp could we change it that the now timestamp matches the now timestamp in the history message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://trello.com/c/8dcyW5aQ